<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript</title>
    <style>
        div{
            width: 300px;
            height: 200px;
            background-color: orange;
            margin: 360px auto;
            line-height: 190px;
            color: #fff;
            text-align: center;
        }
    </style>
</head>
<body>
    <div>
        <script>
            document.write("<h1>努力学习JavaScript</h1>")
        </script>
         </div>
</body>
</html>